import Vue from "vue"
import store from "../store"
Vue.directive("auth",{
    inserted:function(el,bind){
        if(bind.value.indexOf(store.state.user.auth) == -1){
            el.parentElement.removeChild(el)
        }
    }
})